/*
 * PreFilterMixerPanel.java
 *
 * Created on 26 mei 2008, 22:19
 */

package com.laamella.syntherface.synths.alesis.micron.gui;

import com.laamella.syntherface.synths.alesis.micron.model.PreFilterMix;

/**
 *
 * @author  danny
 */
@SuppressWarnings("serial") public class PreFilterMixerPanel extends javax.swing.JPanel {

    /** Creates new form PreFilterMixerPanel */
    public PreFilterMixerPanel() {
        initComponents();
    }

	public void setModel(PreFilterMix preFilterMix) {
		levelSlider.setModel(preFilterMix.level);
		balanceSlider.setModel(preFilterMix.balance);
	}

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        balanceSlider = new javax.swing.JSlider();
        levelSlider = new javax.swing.JSlider();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();

        setBackground(new java.awt.Color(204, 204, 255));
        setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 3));
        setLayout(null);

        balanceSlider.setOrientation(javax.swing.JSlider.VERTICAL);
        balanceSlider.setOpaque(false);
        add(balanceSlider);
        balanceSlider.setBounds(40, 20, 24, 80);

        levelSlider.setOrientation(javax.swing.JSlider.VERTICAL);
        levelSlider.setOpaque(false);
        add(levelSlider);
        levelSlider.setBounds(10, 20, 24, 80);

        jLabel1.setText("balance");
        add(jLabel1);
        jLabel1.setBounds(40, 10, 40, 14);

        jLabel2.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel2.setText("1");
        jLabel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 153, 153), 3));
        add(jLabel2);
        jLabel2.setBounds(70, 70, 20, 20);

        jLabel3.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel3.setText("2");
        jLabel3.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(153, 0, 153), 3));
        add(jLabel3);
        jLabel3.setBounds(70, 20, 20, 21);

        jLabel4.setText("level");
        add(jLabel4);
        jLabel4.setBounds(10, 10, 22, 14);
    }// </editor-fold>//GEN-END:initComponents


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JSlider balanceSlider;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JSlider levelSlider;
    // End of variables declaration//GEN-END:variables

}
